// Created by 51165 on 2025/10/13.
//
#include <stdio.h>

int main() {
    int a, b,c;
    while (scanf("%d %d %d", &a, &b,&c) != EOF) {
        if (a==0 || b==0 || c==0) {
            printf("Not a triangle!");
        }
        else if (a+b<=c || a+c<=b || b+c<=a) {
            printf("Not a triangle!");
        }
        else if (a==b && a==c ) {
               printf ("Equilateral triangle!");
        }
        else if (a==b || a==c || b==c) {
            printf("Isosceles triangle!");
        }
        else {
            printf("Ordinary triangle!");
        }
        printf("\n");
    }
    return 0;
}
